<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cog',plain:true"
   onclick="salesorder_add_products()">商品设置</a>
<script>
    function salesorder_add_products() {
        var selected = $("#module_index_<?php echo $module; ?>_list").datagrid("getSelected");
        if (selected == null) {
            alert('请选择行！');
        } else {
            loadWin('商品设置', 'y.php?r=salesorder/showedititem&moduleentityid=' + selected.
            <?php echo $moduleinfo['moduleentityid']; ?>);
        }
    }
</script>